<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑员工信息</title>
<body class="withvernav">
<div class="bodywrapper">
 {{include file='/public/leftmenu.tpl'}}
    <div class="centercontent">
    
        <div class="pageheader">
            <h1 class="pagetitle">编辑员工【{{$detail.name}}】权限</h1>
           
        </div><!--pageheader-->
        
        <div id="contentwrapper" class="contentwrapper">
        	
        	<div id="basicform" class="subcontent">
            
					
                  
					<form class="stdform stdform2" method="post" action="/user/savecompetence">
                    	<table cellpadding="0" cellspacing="0" border="0" class="stdtable blogtable">
	<colgroup>
    	<col class="con0">
        <col class="con1">
        <col class="con0">
        <col class="con1">
        <col class="con0">
        <col class="con1">
    </colgroup>
    <thead>
    <tr>
    	
    	<th class="head0">权限列表</th>
      
    </tr>
    </thead>
    
    <tbody>
    	<tr>
        	<td class="con0">
            
             {{foreach from=$menudblist item=res key=key}}
          		  <div class="contenttitle2">
                        <h3><input type="checkbox" name="competenceID[]"  value="{{$res.id}}" {{if in_array($res.id,$power)}} checked{{/if}} /> {{if in_array($res.id,$rules)}}<font color="red">{{$res.value_txt}}</font>{{else}}{{$res.value_txt}}{{/if}}   </h3>
                    </div>
                    {{if $res.rankdates}}
                    <br>	
                    	{{foreach from=$res.rankdates key=key item=o}}
            				<input type="checkbox" name="competenceID[]" value="{{$o.id}}" {{if in_array($o.id,$power)}} checked{{/if}} /> 
                            
                            {{if in_array($o.id,$rules)}}<font color="red">{{$o.value_txt}}</font>{{else}}&nbsp;&nbsp;{{$o.value_txt}} &nbsp;&nbsp;{{/if}} 
                            
                             {{if $o.rankthree}}
                             <br>
                             	  {{foreach from=$o.rankthree key=key item=li}}
                                            &nbsp;&nbsp;   &nbsp;&nbsp;   &nbsp;&nbsp;<input type="checkbox" name="competenceID[]" value="{{$li.id}}" {{if in_array($li.id,$power)}} checked{{/if}} />  
                                            
                                             {{if in_array($li.id,$rules)}}<font color="red">{{$li.value_txt}}</font>{{else}}&nbsp;&nbsp;{{$li.value_txt}} &nbsp;&nbsp;{{/if}} 
                                            
                                             
                                    {{/foreach}}
                                    <br>
                              {{/if}}
                		 {{/foreach}}
                {{/if}}
                  <br>	
                  
               {{/foreach}}    
                  
               
            </td>
            
        </tr>
       
	</tbody>
</table>
                        
                        <p class="stdformbutton">
                       	  <button class="submit radius2">Submit Button</button>
                          <input type="hidden" name="uid" id="uid" value="{{$detail.id}}">
                                                   <input type="reset" class="reset radius2" value="Reset Button" />
                      </p>
              </form>
					
                    <br />

            </div><!--subcontent-->
            
            <!--subcontent-->
        
        </div><!--contentwrapper-->
        
	</div><!-- centercontent -->
    
    
</div><!--bodywrapper-->

</body>
</html>
